extends Node

# 场景属性
var SCENE_LEVEL = 1
var SCENE_MAP:Dictionary = {
	1: {
		"level": 1,
		"name": "关卡1",
		"scene": "res://scn/game_main.tscn",
		"time": 10
	},
	2: {
		"level": 2,
		"name": "关卡2",
		"scene": "res://scn/game_level_02.tscn",
		"time": 10
	}
}

func changeScene(scene:String,INTERNAL_VARIABLE:int):
	if not SceneManager.is_transitioning:
		SceneManager.change_scene(
			scene, {
				"pattern_enter": "fade",
				"pattern_leave": "squares",
				"on_tree_enter": func(scene): scene.INTERNAL_VARIABLE += INTERNAL_VARIABLE
			}
		)


#-------玩家属性
# 最大血量
var PLAYER_MAX_HP = 3
# 是否能移动
var PLAYER_MOVE = false
# 是否无敌时间
var PLAYER_INVINCIBLE = true
# 移动速度
var PLAYER_SPEED = 200
# 玩家子弹移动速度
var BULLET_SPEED = 500
# 攻击速度(每移发射了弹的数量)
var ATTACK_SPEED: float = 4


#------敌人属性
# 敌人字段移动速度
var ENEMY_BULLET_SPEED = 300
# 敌人攻击速度(每移发射了弹的数量)
var ENEMY_ATTACK_SPEED: float = 1
# 敌人飞机类型
enum EnemyType{
	ENEMY01,ENEMY02,ENEMY03,ENEMY04,
	ENEMY05,ENEMY06,ENEMY07,ENEMY08
}
# 敌人飞机状态
enum EnemyState{
	# 敌人状态 0停止活动 1巡逻 2攻击 3销毁 4撤消
	STOP,PATROL,ATTACK,DESTORY,REVOKE
}
